import java.util.Date;

public class DischargeEvent extends EventBase {
	private PatientBase patient;

	
	public DischargeEvent(PatientBase patient, int timeUntilExecution) {
		super(timeUntilExecution);
		this.patient = patient;
	}
		
	public void execute(State s) {
		patient.setActivity(TreatmentType.Discharge);
		Simulator.addEvent(new PatientExitSystemEvent(patient, Simulator.nextNormal(3, 2)));
	}
}
